/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Máté
 */
// kijelzőt megvalósító osztály
public class Display extends Element {

    private Boolean light;
    private Boolean isConnected;

    public Display() {
        super(1);
        this.light = false;
        this.isConnected = false;
    }

    public Boolean isConnected() {
        return isConnected;
    }

    public void setConnected(Boolean isConnected) {
        this.isConnected = isConnected;
    }

    public Boolean isOn() {
        return this.light;
    }

    // kijelzőt beállító metódus
    public void switchLight(Boolean value) {
        this.light = value;
    }
}
